'use strict';

const Service = require('egg').Service;

class CategoryService extends Service {

  /**
   * 根据文章id删除此文章下的所有标签信息
   * @author guzhanghua
   * @param {*} skillId
   * @returns
   * @memberof CategoryService
   */
  async deleteCategoryById(skillId) {
    if(!skillId){
      return null
    }
    return await this.app.model.Category.destroy({
      where : {
        skillId
      }
    })
  }
}

module.exports = CategoryService;
